package game;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Group;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaView;
import javafx.stage.Stage;

import java.io.File;
import java.lang.*;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception
    {
        /*Media media = new Media(Main.class.getResource("/resources/music/test.mp3").toString());
        MediaPlayer mediaPlayer = new MediaPlayer(media);
        MediaView mediaView = new MediaView(mediaPlayer);
        mediaPlayer.play();*/
        Parent root = FXMLLoader.load(getClass().getResource("../game/main.fxml"));
        primaryStage.setTitle("終わり の 異界 の 旅");
        primaryStage.setScene(new Scene(root, 1920, 1080));
        primaryStage.setResizable(false);
        primaryStage.setFullScreen(true);//设置全屏
        primaryStage.show();
    }


    public static void main(String[] args)
    {
        launch(args);
    }
}
